package com.yx.robot.bean.robot;

import java.util.ArrayList;
import java.util.List;

public class Map implements Clear {
    //地图数据
    private MapInfo map;
    //路径数据
    private Path path;
    //禁区、分区、定点、虚拟墙等数据
    private List<AreaInfo> area;

    private List<Room> room; //房间分区信息
    private List<Furniture> furniture; //房间分区信息
    private List<ObjectRecognition> objectList; //物品识别信息

    /**
     * 扫地机
     */
    private Sweeper sweeper;
    /**
     * 电源
     */
    private Power power;

    public Map() {
        map = new MapInfo();
        path = new Path();
        power = new Power();
        sweeper = new Sweeper();
        area = new ArrayList<>();
        room = new ArrayList<>();
        furniture = new ArrayList<>();
        objectList = new ArrayList<>();
    }

    public MapInfo getMap() {
        return map;
    }

    public void setMap(MapInfo map) {
        this.map = map;
    }

    public Path getPath() {
        return path;
    }

    public void setPath(Path path) {
        this.path = path;
    }

    public List<AreaInfo> getArea() {
        return area;
    }

    public void setArea(List<AreaInfo> area) {
        this.area = area;
    }

    public List<Room> getRoom() {
        return room;
    }

    public void setRoom(List<Room> room) {
        this.room = room;
    }

    public Sweeper getSweeper() {
        return sweeper;
    }

    public void setSweeper(Sweeper sweeper) {
        this.sweeper = sweeper;
    }

    public Power getPower() {
        return power;
    }

    public void setPower(Power power) {
        this.power = power;
    }

    public List<Furniture> getFurniture() {
        return furniture;
    }

    public void setFurniture(List<Furniture> furniture) {
        this.furniture = furniture;
    }

    public List<ObjectRecognition> getObjectList() {
        return objectList;
    }

    public void setObjectList(List<ObjectRecognition> objectList) {
        this.objectList = objectList;
    }

    public void clear() {
        map.clear();
        path.clear();
        room.clear();
        area.clear();
        power.clear();
        sweeper.clear();
        furniture.clear();
        objectList.clear();
    }
}
